import axios from 'axios'
// 添加请求拦截器
axios.interceptors.request.use(function (config) {
    // 在发送请求之前做些什么
    const token = sessionStorage.getItem('token')
    if (token) {
        config.headers.Authorization = token
    }
    return config;
  }, function (error) {
    // 对请求错误做些什么
    return Promise.reject(error);
  });


export  default axios
import http from './request'
import utils from './utils'
import host from './host'
export {
  host,
    http,
    utils

}

